<?php

/**
* 这个是私信
*/
class ModelSixin extends GetLoad
{
	
	

	public function getsixin($name_id){
		$reluse=$this->SQLquery("SELECT * FROM sixin   where name_id='".$name_id[0]."' OR name2_id='".$name_id[0]."'  order by id desc ");
	//	echo "SELECT * FROM sixin  where name_id='".$name_id[0]."' order by id desc ";
		//var_dump($reluse);
		$this->SQLcun("UPDATE sixin SET chakan='0' where name2_id='".$name_id[0]."'");

		return $reluse;
	}


	public function getname($name_id){

		$reluse=$this->SQLquery("SELECT * from name where name_id='".$name_id."'");
		//var_dump($reluse);die();
		return $reluse[0];

	}

	
}